package cn.fzc.example.redis.distributedlock;

/**
 * @Author: fu.zc
 * @Date: 2020/8/4 16:42
 * @Description:
 */
public interface ILock {

    public static final int LOCK_MAX_EXIST_TIME = 5;

    /**
     * 枷锁
     * @param lockKey   key
     */
    void lock(String lockKey);

    /**
     * 释放锁
     * @param lockKey   key
     */
    void unlock(String lockKey);
}
